<?php
$db = Db::getInstance();
try {
	$query = "SELECT * FROM Article ORDER BY id";
	$result = $db->query($query);
	if(!$result){
		throw new Exception($db->error);
	}
	$articles = array();
	while($row = $result->fetch_assoc()){
		$articles[] = $row;
	}
	View::display('technic/article', array('articles'=> $articles));
} catch(Exception $ex) {
	throw $ex;
}